<?php

class Model_Orm_Reservation extends \Orm\Model
{
    protected static $_properties = array(
            'id',
            'order_id',
            'row',
            'seat'
    );

    protected static $_table_name = 'reservations';
        
    protected static $_has_many = array(
	'orders' => array(
	    'key_from' => 'order_id',
	    'model_to' => 'Model_Orm_Order',
	    'key_to' => 'id',
	    'cascade_save' => true,
	    'cascade_delete' => false),
    );
}
